package com.zhuizikejithreeig.cn.adapter;

import android.widget.TextView;

import com.zhuizikejithreeig.cn.been.WalletBeen;
import com.zhuizikejithreeig.cn.threeigkeji.R;

import java.util.List;


/**
 * Created by 赵航 on 2018/2/9.
 */

public class WalletActivityAdapter extends BasicRecycleViewAdapter<WalletBeen.DataBean> {


    private TextView mPlusMoney;
    private TextView mTime;
    private TextView mObtain;

    public WalletActivityAdapter(List<WalletBeen.DataBean> showItems) {
        super(showItems);
    }

    @Override
    public void convert(BasicViewholder holder, WalletBeen.DataBean itm, int position) {
        mPlusMoney = (TextView) holder.getView(R.id.own_money);
        mTime = (TextView) holder.getView(R.id.time);
        mObtain = (TextView) holder.getView(R.id.obtain);

        mObtain.setText(itm.getMoney());
        mTime.setText(itm.getFinishtime());
//        mPlusMoney.setText();

    }

    @Override
    public int getSuccessFullView(int viewType) {
        return R.layout.walletlist;
    }
}
